Change method name to check_input_blank
Optimize input checking condition