prevents nil url beign passed in