checks that message exists before getting