Moving the 'check' function out of Behavior.Startup for reuse.