align usage of hasOwnProperty with the other usages