I'd write this as `args.trees and any(arg is not None for arg in (args.state, args.name, ...))