don't alloc object if null