since null is of type object you're going to want to do  `if (name && typeof name === 'object') {`