Had to change end..

Now: end <statement=if|method|function|foreach>
Updated all example files and docs so go see how it works now