Adding verification for array defined