Function isValidFunction

Ensures the supplied easing function is valid. Falls back to the default easing otherwise.