Use shorthand min, max and if-null