return null if data is nul or if array is empty
return null if data is nul or if array is empty

localheinz/uri,mkly/url,concrete5/url,FataliBud/url,localheinz/url,thephpleague/url,mleko/url,thephpleague/uri-schemes,thephpleague/uri-parser,thephpleague/uri-manipulations,KorvinSzanto/uri