<nitpicking>
        How can hooks be undefined, when you just made sure it was an array
    </nitpicking>