code: function toBoolean(input) {
    // Written false value
    if (_.isString(input) && ["false", "f", "n", "no"].indexOf(input.toLowerCase()) !== -1) {
      return false;
    }
  
    return (input === null) ? null : !!input;
  }
docs: To boolean