checking for callback existence added