public function isLocked() {
		$options = get_option( 'pressbooks_export_options' );
		if ( realpath( $this->getLockDir( false ) . '/lock.json' ) && isset( $options['theme_lock'] ) && 1 === absint( $options['theme_lock'] ) ) {
			return true;
		}
		return false;
	}
public function isLocked() {
		$options = get_option( 'pressbooks_export_options' );
		if ( realpath( $this->getLockDir( false ) . '/lock.json' ) && isset( $options['theme_lock'] ) && 1 === absint( $options['theme_lock'] ) ) {
			return true;
		}
		return false;
	}
public function isLocked ( ) { $ options = get_option ( 'pressbooks_export_options' ) ; if ( realpath ( $ this -> getLockDir ( false ) . '/lock.json' ) && isset ( $ options [ 'theme_lock' ] ) && 1 === absint ( $ options [ 'theme_lock' ] ) ) { return true ; } return false ; }
Check for a lockfile.

@return bool
Check for a lockfile .