Removed some extra code that ifFunction deprecated.