another if statement to try to deal with empty data