you're right, but we do it like that all over the code- faster and more readable :)
but it's cool- I changed it to instanceof Function