add if statement to check for empty minutes field