Works with inline if