Why not name it explicitely? `fileExtension()` sounds good to me.

Also, coding standards: opening bracket in new line.