Added interface check before attempting to mark as read