1) Empty check before accessing first content type.
2) Static imports to improve code readability.