The constant PAGE_METC_TYPE/PAGE_METC has been defined since at least 2014 (commit 7effd91) but the value of variable current_page_type is not compared to that constant, nor the constant PAGE_ANY that is defined in terms of PAGE_METC_TYPE.
PAGE_METC_TYPE
PAGE_METC
current_page_type
PAGE_ANY