diff --git a/src/Utils/TokenUtils.php b/src/Utils/TokenUtils.php
index <HASH>..<HASH> 100644
--- a/src/Utils/TokenUtils.php
+++ b/src/Utils/TokenUtils.php
@@ -266,8 +266,10 @@ class TokenUtils {
 							// src offsets used to set mw:TemplateParams
 							if ( $offset === null ) {
 								$a->srcOffsets = null;
-							} elseif ( $a->srcOffsets ) {
+							} elseif ( $a->srcOffsets !== null ) {
 								for ( $k = 0;  $k < count( $a->srcOffsets );  $k++ ) {
+									// phpcs:disable Generic.Files.LineLength.TooLong
+									// @phan-suppress-next-line PhanTypeArraySuspiciousNullable https://github.com/phan/phan/issues/805
 									$a->srcOffsets[$k] += $offset;
 								}
 							}
Fix a phan warning in TokenUtils.php

Phan doesn't propagate the result of the test back to the value of
the property, which is <URL>