check urlArray Size before usage