integrating optional inspecting for arrays