Are we in a npar or vpar, check it with: vecheck

vecheck(1):
DESCRIPTION
The vecheck command uses its exit status to report whether or not the
command has been run in a virtual partition (vPars) environment. The
result can be used to alter command flow in a script.
...
RETURN VALUE
The vecheck command exits with one of the following values:

0 The command is run in a vPars environment.
255 The command is run in a non-vPars environment.