Type hinting is indeed a good idea.