Perhaps try to revert the logic, i mean something like :
{.if not|{.filesize|%item-name%.inf.}|it has no pair|it has pair.}It may appears like a stupid idea, but sometimes it works...
also you can be more specific by using :
{.if|{.>|{.filesize|%item-name%.inf.}|0|.}|it has pair|it has no pair.}try using differents
signs, with appropriate variable to compare.
also, like said at the very end of the template's wiki in "Workaround to the problem", you can try to quote your text answer, but i'm not sure how to do and even if it will do the trick... just try it
should be something like this :
{.if |{.filesize|%item-name%.inf.}|
{: it has pair
:}|
{: it has no pair
:} .}