Please us a normal if condition or assign the `$path` once and not like this.