Add check stdin is empty