adding methods that return nil if an allow_nil expect isn't provided