Checking for order status before trying to upcase it