Fixed `if` statement in apartments index