public function hasField($fieldName, $existingSchema = null)
    {
        $field = $this->getField($fieldName, $existingSchema);

        return $field === null ? false : true;
    }
public function hasField($fieldName, $existingSchema = null)
    {
        $field = $this->getField($fieldName, $existingSchema);

        return $field === null ? false : true;
    }
public function hasField ( $ fieldName , $ existingSchema = null ) { $ field = $ this -> getField ( $ fieldName , $ existingSchema ) ; return $ field === null ? false : true ; }
Check if a field already exists in the schema

@param string $fieldName
@param null   $existingSchema

@return bool
Check if a field already exists in the schema