<?php class A { public function get() { return 'foo'; } } $r = ['foo' => 'bar']; $a = new A; var_dump(empty($r[$a->get()]));
You have javascript disabled. You will not be able to edit any code.