check for nil delegate before notifying it