public function getElementByPos($pos) { return isset($this->basketElements[$pos]) ? $this->basketElements[$pos] : null; }