function canCheckout() { $errors = array(); if (!SVN::available()) { $errors[] = "Subversion is not available."; } return $errors; }