check for array