For a plugin, I need to check if a certain field exists in a section. How can i manage that? I'm using the settings section from the plugin, looping through all sections by craft()->sections->getAllSections() and in the template with the following code:
{% for section in sections %}
{% if section['specificfield'] is not defined %}
do something
{% endif %}
{% endfor %}
This doesn't seem to be working. Any ideas on how to check correctly?