Oh, I was asking about last name only, and van der Vorst would be TRUE in my case, since it's not all lower or upper case.
Actually while I was writing this I thought that all I need is something like:
if (ctype_upper($name) || ctype_lower($name)) {
echo 'not OK';
} else {
echo 'OK';
}
But it will only work with a single word like diCaprio and you brought upa good point about scandinanvian or other names that may consist of several parts.
So I guess I need to treat the name as a string, right? Not sure how...