public function get($id) { if (empty($this->mocks[$id])) { return false; } return $this->mocks[$id]; }