Update Plugin.php

fix the foreach warning