function doing_it_wrong_run($function) { if (!in_array($function, $this->caught_doing_it_wrong)) { $this->caught_doing_it_wrong[] = $function; } }