Update plugin.php replace one-liner if