IsValid doesn't work on functions.