Checks if this has the given name.
name
This function is usually used to check the name of a custom event.
The Event.
name to check
true if name matches the name of the event structure.
true