Revert "Use valid form of checking for captions"

This reverts commit e1dff0ee6805db807b4a60ed100d3c529687b4ea.