/**
  * Check if the file is locked. It doesn't wait for the lock
  * @return bool True if the file is locked, false otherwise
  */
 public static function isLocked()
 {
     Atomic::createLockFile();
     return !flock(Atomic::$handle, LOCK_EX | LOCK_NB);
 }