Add eachIndex helper method + consolidating logic for ifEs* components