public static boolean containsOnBit(byte[] bytearray) {
		for (byte element : bytearray) {
			int value = element & 0xff;
			if (value != 0) {
				return true;
			}
		}

		return false;
	}
Returns true if any bit in the given array is 'on' (set to 1).

@param bytearray
@return
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/util/InstructionSearchUtils.java