public function isChunkGenerated($chunkX, $chunkZ) { if ($this->chunkExists($chunkX, $chunkZ) and ($chunk = $this->getChunk($chunkX, $chunkZ, false)) !== null) { return true; } return false; }