Why parenthesis around $prev?