Fix: reversed 'if' block contents for php variable name per version