returns false when input is null or undefined