fix for array check