A better isWaitingUserInput