Suppress 'assignment in if' warning