Would like this to also check for empty() and zero values - we must avoid these (fallback to current page UID) since on 6.x the pageSelect getMenu method throws an exception if page UID is empty/zero.