Update Notification.php - Work with Objects

This resolve the problem in #42 and #32