extract the `is_internal` test and supply its docs.
extract the `is_current` test and supply related docs.
remove the useless processing for external url.

Thanks for the review of @shonenada .
Merge branch 'feature/refine-is-active' into develop