src/Subnet.php
public function isFree($ipAddress) {
        if (!isset($this->current)) {
            throw new BadMethodCallException('You need to call method "load()" first.');
        }

        $longIP = $this->convertIPv4Address($ipAddress);

        return ! $this->isUsed($longIP);
    }
public function isFree($ipAddress) {
        if (!isset($this->current)) {
            throw new BadMethodCallException('You need to call method "load()" first.');
        }

        $longIP = $this->convertIPv4Address($ipAddress);

        return ! $this->isUsed($longIP);
    }
public function isFree ( $ ipAddress ) { if ( ! isset ( $ this -> current ) ) { throw new BadMethodCallException ( 'You need to call method "load()" first.' ) ; } $ longIP = $ this -> convertIPv4Address ( $ ipAddress ) ; return ! $ this -> isUsed ( $ longIP ) ; }
Is IP address currently unused in subnet?

@param string $ipAddress IPv4 address

@return bool

@throws Exception on error
Is IP address currently unused in subnet?