use $urls = array($filePath) instead of unsetting it first and recreating the var