Implement ForeachStatement for (static) Arrays

I am currently stuck at the semantic analysis.
because depending on the type of the expression that is itterated foreach does diffrent things
how I check If the itterated type has thoose methods ?
-  `popFront()`/`front()`
-  `opApply`

yes When I have figured out a way to do this without code-duplication in the parser. 
maybe my Introducing a new helper `parseForeach(bool reverse)(TokenRange trange)` ?