Check if wp_get_post_terms is empty before get_terms