Adding an isset to remove a warning. Also dropping split for explode.