Added checking for callbacks if this callbacks is an anonymous function