Missing isset check on $instance.