filtering out null menu items