Add option to send rich push message

Pardon me if my php is awful, but why $icon vs !is_null($icon)?