check to see if the array has content before using it.
Merge branch 'development' of github.com:alnutile/behat_editor into development