public function isVersionValid( $license ) {
		return ( ! empty( $license->version ) && ! empty( $license->iv ) &&
			16 === strlen( urldecode( $license->iv ) ) &&
			$this->apiVersion === $license->version );
	}
public function isVersionValid( $license ) {
		return ( ! empty( $license->version ) && ! empty( $license->iv ) &&
			16 === strlen( urldecode( $license->iv ) ) &&
			$this->apiVersion === $license->version );
	}
public function isVersionValid ( $ license ) { return ( ! empty ( $ license -> version ) && ! empty ( $ license -> iv ) && 16 === strlen ( urldecode ( $ license -> iv ) ) && $ this -> apiVersion === $ license -> version ) ; }
Check if the license version and encoding is correct.

The license data is valid (for the API version) if the "version" and "iv" properties are set,
the decoded initialization vector (iv) is 16 characters in length, and the "version" is
$this->apiVersion.

@since 2.4.0

@param Object $license Current license data.

@return bool
Check if the license version and encoding is correct .