It should be !($parts['scheme'] === 'ftp' || $parts['scheme'] === 'sftp')