Check for correct type hook