forgot api.setCallback already tests if callback is a function