If GitHub decided to stop supporting the `?size=30` the urls wouldn't break, since that parameter wouldn't even be used. So I don't see the point in checking the url. Plus I don't see how the code would break by having the param in the template if they only switched to use Gravatar, but didn't changed anything else in the API.

BTW, you are missing a `?` in the code.