check if callback is function
Merge branch 'master' of https://github.com/designcreateplay/NodeBB