Adding check that method does not already exist before method generation

Avoids method generation being prompted when protected or private methods trigger a MethodNotFoundException