check for existing callback function