src/FormHandler.php
public function hasFieldOfType($fieldType)
    {
        foreach ($this->fields as $field) {
            if ($field['type'] == $fieldType) {
                return true;
            }
        }

        return false;
    }
public function hasFieldOfType($fieldType)
    {
        foreach ($this->fields as $field) {
            if ($field['type'] == $fieldType) {
                return true;
            }
        }

        return false;
    }
public function hasFieldOfType ( $ fieldType ) { foreach ( $ this -> fields as $ field ) { if ( $ field [ 'type' ] == $ fieldType ) { return true ; } } return false ; }
Check if the form contains any fields of a certain type like "select" or "textarea"

@param $fieldType
@return bool
Check if the form contains any fields of a certain type like select or textarea