Check for both Proc or String