this seems to me a bit of a weird way to check delete permission (looking of the route exists). but if its what sonata orm does we can do the same.