Check is callback exists and if it's a function