adding if statement for when no coordinates exist