Fixed hook requirements to enable successful installation.

This threw an error because nothing was returned. Now fixed for installation purposes.