Check if chat message exists before selecting