Check whether a message is present