How about we rename $resource_or_url to $resourceOrUrl throughout the file since we are using CamelCase?