Nicer check for empty data and additional class for styling input fields without heavy row handling