Adding return hint for has() method