function canExport() { $errors = array(); if (!HTTP::available()) { $errors[] = "The curl module is not available"; } if (!Zip::available()) { $errors[] = "The zip module is not available"; } return $errors; }