add more checks for fixArray Refactor Recommendation