`if (!empty($community_menu))` is enough