public function tryLoadBy($field, $value) { $this->addCondition($field, $value); try { $this->tryLoadAny(); } catch (\Exception $e) { array_pop($this->conditions); throw $e; } array_pop($this->conditions); return $this; }