added hasOwnProperty check to the getter