instead of using "in" which could return true for other entries in the object use the proper hasOwnProperty call