first( $isType ); } /** * Checks if a field is a wrapper of other fields. * - Repeater field has sub_fields. * - Flexible content field has layouts, which also have sub_fields. * * @param array $field * * @return bool|callable */ public static function isWrapper( $field ) { return in_array( Obj::prop( 'type', $field ), self::WRAPPER_FIELDS, true ); } }