Use get() instead of ternary operator