Check if empty message for firebase