[WIP] Validate hooks existence

I could not discover why, but it works! But would be nice this improvement, as soon as i get some time, i will work on that.