'has', not 'exists'
Test case
Merge pull request #1366 from sjinks/issue-1362

Fix #1362