Update Model.php

I was having issues where my application would crash when I tried to push a model with null relationships. This check prevents the crash by returning false when a null value is encountered.