added a method to event model to check for attachment