[TASK] Refactor cycle usage

Use the same $cycle value in 'cycle' assignment and isOdd / isEven calulation.
The change only brings better readability into the code. In case anybody reads it one might see clearer that $cycle % 2 leads to an even number and an odd one vice versa.