private function allowedTypeExist(string $type):bool
    {
        foreach ($this->allowed_text_render as $one) {
            if ($one["type"] === $type) {
                return (true);
            }
        }
        return (false);
    }
private function allowedTypeExist(string $type):bool
    {
        foreach ($this->allowed_text_render as $one) {
            if ($one["type"] === $type) {
                return (true);
            }
        }
        return (false);
    }
private function allowedTypeExist ( string $ type ) : bool { foreach ( $ this -> allowed_text_render as $ one ) { if ( $ one [ "type" ] === $ type ) { return ( true ) ; } } return ( false ) ; }
Check if allowed type exist for text render
@param string $type allowed type
@return bool If exist
Check if allowed type exist for text render