Fixed bug in array check syntax