pythonic tip - you can just use "if kwarg" (my bad for saying otherwise)