Check whether caption text is set, and only display or return its components if it is
Merge pull request #2 from cconover/dev

Check whether caption text is set, and only display or return its components if it is