Indicates whether an event handler with a specified name already exists.
function MethodExists(const Name: string): Boolean;
Call MethodExists to determine whether an event handler with a given name has already been created.
It checks only existed in executed code methods, i.e. that methods which were created before compilation of application.