Check if file is uploaded during cleanup (#1975)
Check if file is uploaded during cleanup (#1975)

* Check if file is uploaded during cleanup 

If a file field is defined but there are no files uploaded and you want to delete the row an 'invalid argument supplied for foreach' pops up. 
Solution: check if file info field json_decode returns null.

* Fix styleci error

darit/voyager,SaadEddinHassania/voyager,the-control-group/voyager,handiwijoyo/voyager,SaadEddinHassania/voyager,the-control-group/voyager,handiwijoyo/voyager,fletch3555/voyager,darit/voyager,fletch3555/voyager