code cleanup: move mobile check function in separate file (long RegEx line)