Check type of token property since using 'in' will return true when property is set but undefined