organize evaluation blocks into switch statements to improve code readability
array_shift » unset to simplify code base and improve performance
implement fenced code block to resolve #2