Is there a reason for the explicit length check and not just using ``if not files``?