check for empty data