Correct order of static ifs