Fix pull request #879

This simplifies my code from pull request #879 - it makes sense to use `isset()` when implementing `isset()`.

Small bug fix:
This also makes sure that we don't accidentally return false if a key is set in the relationships array that exists in the attributes array too (but with value NULL).