items.HasProperty("hideParentItem") is not quite as efficient, but it's not as if efficiency is a major issue here.

I think items.GetProperty("hideParentItem").asBoolean() will work fine as well (returns false for Null).