changed to if($message)