Added isUserAttending and isUserInvited functions to the even class