# Enemy = Null, filter confusingly functioning (Solved)

**URL:** <https://discourse.codecombat.com/t/enemy-null-filter-confusingly-functioning-solved/8420>\
**Category:** Ambassador\
**Created:** [July 16, 2016, 3:16pm UTC](https://discourse.codecombat.com/t/enemy-null-filter-confusingly-functioning-solved/8420 "2016-07-16T15:16:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Bryukh](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/bryukh/32/19597_2.png) [@Bryukh](https://discourse.codecombat.com/u/Bryukh)\
**Post date:** [July 16, 2016, 6:55pm UTC](https://discourse.codecombat.com/t/enemy-null-filter-confusingly-functioning-solved/8420/4 "2016-07-16T18:55:10Z")

</div>

Got it. There is a problem with python interpretator and it works like in JS.  
So the empty array is `true` in conditionals.  
Try to check  
`if enemies.length:`

---

_[View the full topic](https://discourse.codecombat.com/t/enemy-null-filter-confusingly-functioning-solved/8420)._
