public function memoryExceeded($memoryLimit) { return memory_get_usage() / 1024 / 1024 >= $memoryLimit; }