i am still unsure if we should keep this check. if we have it here, i guess we should also have it in the ``ViewHandler``:
https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/View/ViewHandler.php#L192