in reply to error defined on hash

Your changes are equivalent, near as I can tell. It appears to be checking a module for the presence of a subroutine.

Dum Spiro Spero