Use hasOwnProperty when setting defaults