protection from undefined collection