Adding return hint for has() method
Merge pull request #2169 from odiel/2.0.0

Adding return hint for has() method