Don't require $this to be present, check for constant instead