defining __hasOwnProperty as standalone func

so it can be called directly without having to retrieve
through prototype chain