Added check for items in notification
Added check for content-type