- if collection.count > 0 and collection_actions(collection).present? .panel.collection_actions data-handler='CollectionActions' = collection_actions(collection)