Check for Lua hooks before calling