Explicitly check for undefined since 0 is an accpetable value