* @return $isInitialized Whether the file's size is zero
*/
private function isFileInitialized () {
- // Default is not initialized
- $isInitialized = FALSE;
-
// Get it from iterator which holds the pointer instance. If FALSE is returned
$fileSize = $this->getIteratorInstance()->size();
assert(is_int($fileSize));
// Is more than 0 returned?
- if ($fileSize > 0) {
- // So is the header written?
- $isInitialized = $this->getIteratorInstance()->isHeaderInitialized();
- } // END - if
+ $isInitialized = ($fileSize > 0);
// Return result
return $isInitialized;