check if view exists