Checking for type instead of assigning empty callback.