Use isset() instead of strlen()
Use isset() instead of strlen()

Isset is a native language construct and thus A LOT faster than using strlen()

On my local machine this leads to a 1s performance gain for about 1 million paths. Considering that this function will be called a lot for every file operation this makes a noticable difference.

cernbox/core,bluelml/core,IljaN/core,IljaN/core,jbicha/server,cernbox/core,michaelletzgus/nextcloud-server,xx621998xx/server,bluelml/core,jbicha/server,lrytz/core,xx621998xx/server,jbicha/server,pixelipo/server,pmattern/server,Ardinis/server,pmattern/server,lrytz/core,pmattern/server,pollopolea/core,endsguy/server,pollopolea/core,xx621998xx/server,phil-davis/core,michaelletzgus/nextcloud-server,endsguy/server,IljaN/core,jbicha/server,lrytz/core,andreas-p/nextcloud-server,lrytz/core,cernbox/core,nextcloud/server,Ardinis/server,michaelletzgus/nextcloud-server,owncloud/core,nextcloud/server,whitekiba/server,andreas-p/nextcloud-server,bluelml/core,pollopolea/core,pollopolea/core,IljaN/core,pixelipo/server,whitekiba/server,IljaN/core,endsguy/server,endsguy/server,andreas-p/nextcloud-server,sharidas/core,owncloud/core,Ardinis/server,xx621998xx/server,pixelipo/server,andreas-p/nextcloud-server,sharidas/core,pmattern/server,pixelipo/server,endsguy/server,jbicha/server,bluelml/core,whitekiba/server,xx621998xx/server,nextcloud/server,whitekiba/server,bluelml/core,sharidas/core,whitekiba/server,Ardinis/server,sharidas/core,michaelletzgus/nextcloud-server,lrytz/core,pollopolea/core,Ardinis/server,andreas-p/nextcloud-server,owncloud/core,cernbox/core,pmattern/server,nextcloud/server,cernbox/core,pixelipo/server,owncloud/core,sharidas/core,owncloud/core