hasExtension method

bool hasExtension(
String extension
)