Return earlier if beforenotify returns false