Update Model.php

Changed else if condition instead of checking if that key exists in guarded column array