Let A be a class and A1,A2,A3 subclasses. I want to make a forEach that goes through elements of A but excludes all A3 elements. I tried to put an if(!(a3 instanceof A3)) but it