Is this condition correct? Should the notification be made even if notify is false?