Woah... does this short circuit if `handler` is not a function?