Array function to check if an array has a complete cyrcle has been added