Reword the documentation of propOrDefault
Use a ternary expression instead of if-else