Fixed IF statement when REPLY is empty