Made a private function to create the context in an array item loop
Simplified and renamed helpers: afArrayFieldIsFirstVisible & afArrayFieldIsLastVisible
Simplified and renamed helpers: afArrayFieldIsFirstVisible & afArrayFieldIsLastVisible