Input: iforce - check array bounds before accessing elements