if (nantoka) {
  return 1;
} else {
  return 0;
}
で終わるコードって別にelseはいらないですよね?