Fixed an issue with Array checking.