add method to ease conditional property assignment