fix indent
take a shortcut if callback list is empty