small method name refactoring, check for empty projectcode