"*if* given Array", not "*is* given Array. This is copy-pasted a few times below. Also "if the given Array" not "if given Array".