Рябушева - Лабораторная работа #2

Do you really need to check for empty field?