check if we have a node page or a taxonomy page in a custom block content function