public static hasField ( mixed $field ) : mixed | ||
$field | mixed | A single field (string) or list of fields (array) to check the existence of. |
Результат | mixed | If `$field` is a string, returns a boolean indicating whether or not that field exists. If `$field` is an array, returns the first field found, or `false` if none of the fields in the list are found. |