Added a check for a list of projects. Now, only displays the dropdown for projects when there are projects to list.