check for nil hook