bin: Simplify code for --exists and --properties