Removes unused branch. Add istanbul comment to ignore hasOwnPropery else branch