Added inline 'if'