[WIP] Validate hooks existence

Probably it will be a bit better.