Fix Mime Type Helper on Multiple Extensions

Fix mime type helper on multiple extensions for the same mime type.
Previously if there were multiple extensions the last one would be the
only one

- Reverse mime type array
- Flip methods
- Add phpdoc