Use function to return default values instead of checking for boundaries