should be ` if isset($params['is_notified'] and ...` i guess