public static function is_xls( $file ) { if ( ( $info = validFormat::read_doc_xls_info( $file ) ) !== false ) { if ( isset( $info['Workbook'] ) || isset( $info['Book'] ) ) { return true; } } return false; }