Clean up require expression
Check for creds as appropriate