protected function check_is_taxonomy_allowed( $taxonomy ) {
		$taxonomy_obj = get_taxonomy( $taxonomy );
		if ( $taxonomy_obj && ! empty( $taxonomy_obj->show_in_rest ) ) {
			return true;
		}
		return false;
	}
protected function check_is_taxonomy_allowed( $taxonomy ) {
		$taxonomy_obj = get_taxonomy( $taxonomy );
		if ( $taxonomy_obj && ! empty( $taxonomy_obj->show_in_rest ) ) {
			return true;
		}
		return false;
	}
protected function check_is_taxonomy_allowed ( $ taxonomy ) { $ taxonomy_obj = get_taxonomy ( $ taxonomy ) ; if ( $ taxonomy_obj && ! empty ( $ taxonomy_obj -> show_in_rest ) ) { return true ; } return false ; }
Checks that the taxonomy is valid.

@param string $taxonomy Taxonomy to check.
@return WP_Error|boolean
Checks that the taxonomy is valid .