Determines whether the entity has a field with the given name.
string $field_name: The field name.
bool TRUE if the entity has a field with the given name. FALSE otherwise.
public function hasField($field_name);