ternary operator instead of if block
removed line