add ability to query if attributes are present