Use better syntax for checking callback existence