1) Empty check before accessing first content type.
2) Static imports to improve code readability.
Merge pull request #55 from abhijitsarkar/empty-content-type-check

Empty check before accessing first content type