has Delegate
Determines whatever declaration has a delegate with given name.
Return
true if the declaration has a delegate matching the specified name (or any delegate if delegateName is null), false otherwise.
Parameters
delegate Name
the name of the delegate (optional).