converted isTagDisplayable function to static