improved empty check for cli input