$isNew = $media->getId() != null ?

This just doesn't seem right.

In addition when "updating"  gaufrette tries to delete my entire media directory, but thats probably another issue.