In [django-cms 3](https://github.com/divio/django-cms/blob/develop/cms/models/pagemodel.py#L81) they have added a is_home field that does exactly this.
Now, the above code no place here because:
* it modifies intimate implementation detail from another package.
* not all elements from the iterable are *pages* or have the is_home callable.
I propose moving this block into our django-cms fork.