Checks for selenium instead of failing on import