public function isIn($block): bool
    {
        if (!$block instanceof IPBlock) {
            $block = new static($block);
        }

        return $block->containsBlock($this);
    }
public function isIn($block): bool
    {
        if (!$block instanceof IPBlock) {
            $block = new static($block);
        }

        return $block->containsBlock($this);
    }
public function isIn ( $ block ) : bool { if ( ! $ block instanceof IPBlock ) { $ block = new static ( $ block ) ; } return $ block -> containsBlock ( $ this ) ; }
Determine if the current block is contained in another block.

@param mixed $block

@return bool
Determine if the current block is contained in another block .