Entity/Form.php
public function getFieldsNotInArray($keys)
    {
        $fields = [];

        foreach ($this->fields as $field) {
            if (!in_array($field->getKey(), $keys)) {
                $fields[] = $field;
            }
        }

        return $fields;
    }
public function getFieldsNotInArray($keys)
    {
        $fields = [];

        foreach ($this->fields as $field) {
            if (!in_array($field->getKey(), $keys)) {
                $fields[] = $field;
            }
        }

        return $fields;
    }
Get fields not in array.

@param $keys

@return FormField[]