Changed code to use an assert and forced to using array() method