code: private boolean containsNull(PhysicalEntity[] pes)
  	{
  		for (PhysicalEntity pe : pes)
  		{
  			if (pe == null) return true;
  		}
  		return false;
  	}
docs: Checks if any element in the chain is null.
  @param pes element array
  @return true if null found