public boolean isValid(int elementSize) {
		try {
			Memory memory = programContext.getProgram().getMemory();
			Address arrayAddr = getArrayAddress();
			Instruction arrayInstr =
				programContext.getProgram().getListing().getInstructionAt(arrayAddr);
			if (arrayInstr != null) {
				// if slice array is pointing at an instruction (commonly in switch tables)
				return false;
			}
			return memory.contains(arrayAddr) &&
				memory.contains(arrayAddr.addNoWrap(len * elementSize));
		}
		catch (AddressOverflowException | AddressOutOfBoundsException e) {
			return false;
		}
	}
Returns true if this slice seems valid.

@param elementSize size of elements in this slice 
@return boolean true if array blob is a valid memory location
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoSlice.java