Make anchor for examples

you may rename the method to `hasAncorInUrl` and remove comment as it'd be self-descriptive