Checks if the function has the name name
Must return true when functions have the same name
bool hasSameName(String other);