public function getElement($row, $column) { if ($row > $this->rows or $row < 0 or $column > $this->columns or $column < 0) { return false; } return $this->matrix[(int) $row][(int) $column]; }