Add method for byte array checking