Use hasOwnProperty for data

Otherwise prototype methods of some data-classes fall into query string