check for both null/empty string when supplying default argument