PHP 7.1 and 8.1 handled boolean string differently. Changed the type to a proper boolean to resolve this issue.