just a nitpick maybe but this function name doesn't really make sense to me. seems like it should return True or False but it returns a tuple. Maybe add a doctstring at least?